package adapter;

public class ObjectAdapter implements DC5 {

    private AC220 adaptee;

    public ObjectAdapter(AC220 adaptee) {
        this.adaptee = adaptee;
    }

    @Override
    public int output5V() {
        int output = adaptee.output220V() / 44;
        System.out.println(output + "V");
        return output;
    }
}
